// 部门 人员 审核驳回
import Vue from 'vue'
import {store} from '@/store/index'

const vueObj:any = new Vue()

let conf:commonInf.toolsBarItem = {

    title: '审核驳回',
    icon: 'icon-close',
    fn (){

        store.dispatch('request',{
            url: 'patch/auditings/id/status',
            data: {
                passed: false
            }
        }).then(success =>{

            if(success){

                vueObj.$Notice.success({
                    title: '操作成功',
                })

                // 关闭折叠层
                setTimeout(() =>{
                    store.commit('auditingStore/foldingLayerSwitch', 'close')
                }, 500)
                
            }
            
        })
        
    }
    
}

export default conf